<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>帮助文档维护</title>
		<!-- 全局css引入 必须 -->
		<link href="<%=basePath%>/style/style.css" rel="stylesheet" type="text/css">
		<link href="style/global.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="<%=basePath%>/js/global.js"></script>
		<!-- 结束 -->
		<!-- 用到表单验证必须引入 -->
		<!-- 结束 -->
		<jsp:include page="/vailidateInclude.jsp" />
		<jsp:include page="/extInclude.jsp" />
		<script src="<%=basePath%>/js/selector/ModuleSelector.js" type="text/javascript"></script>
		<script type="text/javascript">
			function doSub(){
				var body = encodeURIComponent(FCKeditorAPI.GetInstance("map.nr").GetXHTML(true));
				//alert(body);
				if(body==''){
					alert("帮助内容不能为空!");
					return false;
				}
			}
		//模块选择回调函数
function extCallBack(id,text){
document.getElementById("modid").value=id;
document.getElementById("modname").value=text;
}
		</script>
	</head>
	<body>
		<div class="rightCon" align="center">
			<div class="rightTitle2">
				<h3>
					<s:property value="nav" escape="false" />
				</h3>
			</div>
			<s:form action="saveHelpdoc.do" method="post" cssClass="required-validate">
				<table class="formTable">
					<tr>
						<td class="formLabel">
							所属模块：
						</td>
						<td>
							<s:hidden name="map.modid" id='modid' />
							<s:textfield name="map.modname" id='modname' readonly="true" cssClass="required" size="40" />
							<input type="button" class="buttonSelect" value="选择" onclick="ModuleSelector.getView (extCallBack).show()" />
						</td>
						<td>
							所属URL：
						</td>
						<td>
							<s:textfield name="map.ssurl" id="ssurl" cssClass="required" cssStyle="width:200px;"></s:textfield>
						</td>
					</tr>
					<tr>
						<td>
							文档名称：
						</td>
						<td title="文档名称">
							<s:textfield name="map.docname" id="docname" cssClass="required"></s:textfield>
						</td>
						<td>
							文档编码：
						</td>
						<td title="功能编码">
							<s:textfield name="map.funccode" id="funccode" cssClass="required"></s:textfield>
						</td>
					</tr>
					<tr>
						<td>
							序列：
						</td>
						<td colspan="3" title="序列">
							<s:textfield name="map.xulie" id="xulie" cssClass="required validate-number"></s:textfield>
						</td>
					</tr>
					<tr>
						<td colspan="4">
							业务说明：
							<FCK:editor instanceName="map.svcnote" width="100%" height="400px" toolbarSet="Default" basePath="/fckeditor/">
								<jsp:attribute name="value">${map.svcnote}</jsp:attribute>
							</FCK:editor>
						</td>
					</tr>
					<tr>
						<td colspan="4">
							帮助内容：
							<s:hidden name="map.id"></s:hidden>
							<FCK:editor instanceName="map.nr" width="100%" height="400px" toolbarSet="Default" basePath="/fckeditor/">
								<jsp:attribute name="value">${map.nr}</jsp:attribute>
							</FCK:editor>
						</td>
					</tr>
					<tr>
						<td colspan="4">
							异常处理：
							<FCK:editor instanceName="map.errnote" width="100%" height="400px" toolbarSet="Default" basePath="/fckeditor/">
								<jsp:attribute name="value">${map.errnote}</jsp:attribute>
							</FCK:editor>
						</td>
					</tr>
					<tr>
						<td>
							搜索关键字：
						</td>
						<td colspan="3" title="搜索关键字">
							<s:textarea name="map.keywords" id="keywords" cols="60" rows="5"></s:textarea>
						</td>
					</tr>
					<tr>
						<td>
							备注：
						</td>
						<td colspan="3">
							<s:textarea name="map.bz" title="备注" id="bz" rows="5"></s:textarea>
						</td>
					</tr>
				</table>
				<table class="form_submit_bar">
					<tr>
						<td width="30%" align="center" colspan="4">
							<input class="buttonOk" id="button2" type="submit" value="保存" />
							&nbsp;&nbsp;&nbsp;&nbsp;
							<input class="buttonOk" id="button2" type="reset" value="重置" />
						</td>
					</tr>
				</table>
			</s:form>
		</div>
	</body>
</html>